package com.define.ssh.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.define.ssh.dao.ClientVersionDataDao;
import com.define.ssh.model.ClientVersionData;
import com.define.ssh.service.ClientVersionDataService;

@Service("clientVersionDataServiceImpl")
public class ClientVersionDataServiceImpl extends
		BaseServiceImpl<ClientVersionData, Long> implements
		ClientVersionDataService {

	@Resource(name = "clientVersionDataDaoImpl")
	private ClientVersionDataDao clientVersionDataDao;

	@Resource(name = "clientVersionDataDaoImpl")
	public void setBaseDao(ClientVersionDataDao clientVersionDataDao) {
		super.setBaseDao(clientVersionDataDao);
	}

	@Override
	public List<String> findVersionGroupByType(int type) {
		return this.clientVersionDataDao.findVersionGroupByType(type);
	}

	@Override
	public int countByVersion(String version) {
		return this.clientVersionDataDao.countByVersion(version);
	}

}
